import request from '@/utils/request'

// 查询套餐组合内商品列表
export function listComboGroupGoods(query) {
  return request({
    url: '/cinema/comboGroupGoods/list',
    method: 'get',
    params: query
  })
}

// 查询套餐组合内商品详细
export function getComboGroupGoods(id) {
  return request({
    url: '/cinema/comboGroupGoods/' + id,
    method: 'get'
  })
}

// 新增套餐组合内商品
export function addComboGroupGoods(data) {
  return request({
    url: '/cinema/comboGroupGoods',
    method: 'post',
    data: data
  })
}

// 修改套餐组合内商品
export function updateComboGroupGoods(data) {
  return request({
    url: '/cinema/comboGroupGoods',
    method: 'put',
    data: data
  })
}

// 删除套餐组合内商品
export function delComboGroupGoods(id) {
  return request({
    url: '/cinema/comboGroupGoods/' + id,
    method: 'delete'
  })
}

// 导出套餐组合内商品
export function exportComboGroupGoods(query) {
  return request({
    url: '/cinema/comboGroupGoods/export',
    method: 'get',
    params: query
  })
}